package com.buss.customer.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * 客户/供应商账户信息
 * @author gykl
 *
 */
@Entity
@Table(name = "customer_account")
@TableGenerator(name="account_pk_sequence",initialValue=1,allocationSize=1,pkColumnName="seq_col",
	pkColumnValue="account_seq",valueColumnName="seq_val",table="customer_pk_sequence")
public class CustomerAccount implements Serializable {

	private static final long serialVersionUID = 976364273222920280L;

	/**账户ID*/
	@Id
	@GeneratedValue(strategy=GenerationType.TABLE,generator="account_pk_sequence")
	private Long id;
	
	/**客户/供应商ID*/
	private Long customerId;

	/**账户名称*/
	@Column(length=200,nullable=false)
	private String accountName;
	
	/**账户号码*/
	@Column(length=30,nullable=false)
	private String accountNumber;
	
	/**是否默认账户*/
	private Boolean isDefault;

	/**备注*/
	private String intro;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public String getAccountNumber() {
		return accountNumber;
	}

	public void setAccountNumber(String accountNumber) {
		this.accountNumber = accountNumber;
	}

	public Boolean getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(Boolean isDefault) {
		this.isDefault = isDefault;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}
	
	
}
